#define _CRT_SECURE_NO_WARNINGS
#include"Sort.h"

	
void TestInsertSort()
{
	int a[] = { 6,3,4,8,7,9,5,1,2,0 };
	InsertSort(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}

void TestShellSort()
{
	int a[] = { 6,3,4,8,7,9,5,1,2,0};
	ShellSort(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}


void TestSelectSort()
{
	int a[] = { 6,3,4,8,7,9,5,1,2,0 };
	SelectSort(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}

void TestHeapSort()
{
	int a[] = { 6,3,4,8,7,9,5,1,2,0};
	HeapSort(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}

void TestBubbleSort()
{
	int a[] = { 6,3,4,8,7,9,5,1,2,0 };
	BubbleSort(a, sizeof(a) / sizeof(int));
	PrintArr(a, sizeof(a) / sizeof(int));
}

void TestQuickSort()
{
	int a[] = { 6,3,4,8,7,9,5,1,2,0 };
	QuickSortNonR(a, 0, sizeof(a) / sizeof(int) -1);
	PrintArr(a, sizeof(a) / sizeof(int));
}
int main()
{
	//TestInsertSort();
	//TestShellSort();

	//TestSelectSort();
	TestHeapSort();

	//TestBubbleSort();
	//TestQuickSort();

	return 0;
}